#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "list_type.h"

#ifndef LISTE_H
#define LISTE_H
int average_rssi(DeviceList * dl, char mac_addr[6]); 
void clear_device_list (DeviceList ** l) ;
void add_device (DeviceList ** l , char mac_addr[6]) ;
void maccpy(char to[6], char from[6]) ;
void print_lists(DeviceList * l) ;
DeviceList * getByMAC(DeviceList * dl, char mac_address[6]) ;
int maccmp(char s1[6], char s2[6]) ;
void delete_outdated(DeviceList *l, struct timeval current_time) ;
void clear_rssiList_from(RssiList * rssi) ;
void clear_rssi_list (RssiList * l) ;
void add_rssi_sample (DeviceList * l , int rssi_value) ;
int diffTimeval(struct timeval t1 , struct timeval t2) ;
void print_mac(u_char s[6]) ;
DeviceList * getByMAC(DeviceList * dl, char mac_address[6]) ;
#endif
